package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.goodsLimit.GoodsLimitData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class GoodsLimitBussiness {

    public static Map<Integer, GoodsLimitData> getGoodsLimitDataMap(long userId) {
        return DaoHelper.getGoodsLimitDataDaoImpl().getGoodsLimitDataMap(userId);
    }

    public static boolean addGoodsLimitData(GoodsLimitData goodsLimitData) {
        return DaoHelper.getGoodsLimitDataDaoImpl().add(goodsLimitData);
    }

    public static boolean updateGoodsLimitData(GoodsLimitData goodsLimitData) {
        return DaoHelper.getGoodsLimitDataDaoImpl().update(goodsLimitData);
    }
}
